package com.portal.settings;

import org.springframework.jdbc.core.JdbcTemplate;

import javax.sql.DataSource;

class SettingsJdbcUtils {

    private static JdbcTemplate jdbcTemplate;

    static synchronized JdbcTemplate getJdbcTemplate(DataSource dataSource) {
        if (jdbcTemplate == null) {
            jdbcTemplate = new JdbcTemplate(dataSource);
        }
        return jdbcTemplate;
    }
}
